package com.snoopy.gas1.service.impl;

import com.snoopy.gas1.entity.Station_info;
import com.snoopy.gas1.mapper.Station_infoMapper;
import com.snoopy.gas1.service.Station_infoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class Station_infoServiceImpl implements Station_infoService {
    @Autowired
    private Station_infoMapper station_infoMapper;

    @Override
    public List<Station_info> lists() {
        return station_infoMapper.lists();
    }

    @Override
    public int insert(Station_info station) {
        return station_infoMapper.insert(station);
    }

    @Override
    public Station_info getById(Integer id) {
        return station_infoMapper.getById(id);
    }

    @Override
    public int update(Station_info station) {
        return station_infoMapper.update(station);
    }

    @Override
    public int delete(Integer id) {
        return station_infoMapper.delete(id);
    }

    @Override
    public List<Station_info> searchByName(String name) {
        return station_infoMapper.searchByName(name);
    }
}